#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
	int a, b, k;
	cin >> a >> b >> k;
	/*double ans = a * 1.0 / b;
	cout << fixed << setprecision(1000) << ans << endl;*/
	while (k--) {
		a = a * 10;
		cout << a / b;
		a = a % b;
	}
	return 0;
}